package com.fsx.serverupfile.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("t_media")
@NoArgsConstructor
public class Media {
    @TableId(value = "m_id",type = IdType.AUTO)
    private long mid;
    @TableField("m_url")
    private String murl;
    @TableField("m_type")
    private int mtype;

    public Media(String murl, int mtype) {
        this.murl = murl;
        this.mtype = mtype;
    }
}
